package com.test.hello.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.test.hello.basic.BasicDAO;
import com.test.hello.dao.PermissionMapper;
import com.test.hello.model.Permission;

@Service
public class PermissionService implements BasicDAO<Permission> {
	@Autowired
	private PermissionMapper mapper;
	public int deleteByPrimaryKey(Long id) {
		
		return mapper.deleteByPrimaryKey(id);
	}

	public int insertSelective(Permission entity) {
		
		return mapper.insertSelective(entity);
	}

	public Permission selectByPrimaryKey(Long id) {
		
		return mapper.selectByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(Permission entity) {
		
		return mapper.updateByPrimaryKeySelective(entity);
	}

}
